package com.test;

import java.awt.*;
import java.util.Objects;

/**
 * @author W.S.
 * @version v1.0.0
 * @description
 * @date Created in 2019/3/26 11:00
 */
public class Draw {
    private String temStr = "";

    private Font font;

    private int headX;

    private int headY;

    public Draw() {
    }

    public Draw(String temStr, Font font) {
        this.temStr = temStr;
        this.font = font;
    }

    public Draw(String temStr, int headX, int headY) {
        this.temStr = temStr;
        this.headX = headX;
        this.headY = headY;
    }

    public String getTemStr() {
        return temStr;
    }

    public void setTemStr(String temStr) {
        this.temStr = temStr;
    }

    public int getHeadX() {
        return headX;
    }

    public void setHeadX(int headX) {
        this.headX = headX;
    }

    public int getHeadY() {
        return headY;
    }

    public void setHeadY(int headY) {
        this.headY = headY;
    }

    public Font getFont() {
        return font;
    }

    public void setFont(Font font) {
        this.font = font;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Draw draw = (Draw) o;
        return Objects.equals(temStr, draw.temStr);
    }

}
